package br.ufpe.cin.log.generator.impl;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;

public class MyFormatter extends Formatter {
	//
	// Create a DateFormat to format the logger timestamp.
	//
	private static final DateFormat df = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS");

	public String format(LogRecord record) {
		StringBuilder builder = new StringBuilder(1000);
		builder.append(formatMessage(record));
		builder.append("\n");
		return builder.toString();
	}

}
